<form id="add-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('任务编号')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input class="form-control" name="row[task_no]" type="text" placeholder="自动生成" readonly>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('排程')}:</label>
        <div class="col-xs-12 col-sm-8">
            <select class="form-control selectpicker" name="row[schedule_id]" data-rule="required">
                <option value="">请选择排程</option>
                {volist name="scheduleList" id="schedule"}
                <option value="{$schedule.id}">{$schedule.schedule_name}</option>
                {/volist}
            </select>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('工序')}:</label>
        <div class="col-xs-12 col-sm-8">
            <select class="form-control selectpicker" name="row[process_id]" data-rule="required">
                <option value="">请选择工序</option>
                {volist name="processList" id="process"}
                <option value="{$process.id}">{$process.name}</option>
                {/volist}
            </select>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('工作中心')}:</label>
        <div class="col-xs-12 col-sm-8">
            <select class="form-control selectpicker" name="row[work_center_id]">
                <option value="">请选择工作中心</option>
                {volist name="workCenterList" id="workCenter"}
                <option value="{$workCenter.id}">{$workCenter.center_name}</option>
                {/volist}
            </select>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('设备')}:</label>
        <div class="col-xs-12 col-sm-8">
            <select class="form-control selectpicker" name="row[equipment_id]">
                <option value="">请选择设备</option>
                {volist name="equipmentList" id="equipment"}
                <option value="{$equipment.id}">{$equipment.equipment_name}</option>
                {/volist}
            </select>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('负责人')}:</label>
        <div class="col-xs-12 col-sm-8">
            <select class="form-control selectpicker" name="row[employee_id]">
                <option value="">请选择负责人</option>
                {volist name="employeeList" id="employee"}
                <option value="{$employee.id}">{$employee.employee_name}</option>
                {/volist}
            </select>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('数量')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input class="form-control" name="row[quantity]" type="number" step="0.01" min="0" placeholder="请输入数量">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('标准时间(小时)')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input class="form-control" name="row[standard_time]" type="number" step="0.01" min="0" placeholder="请输入标准时间">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('准备时间(小时)')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input class="form-control" name="row[setup_time]" type="number" step="0.01" min="0" placeholder="请输入准备时间">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('优先级')}:</label>
        <div class="col-xs-12 col-sm-8">
            <select class="form-control selectpicker" name="row[priority]">
                <option value="10">紧急</option>
                <option value="30">高</option>
                <option value="50" selected>中</option>
                <option value="70">低</option>
                <option value="90">最低</option>
            </select>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('计划开始时间')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input class="form-control datetimepicker" name="row[plan_start_time]" type="datetime-local">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('备注')}:</label>
        <div class="col-xs-12 col-sm-8">
            <textarea class="form-control" name="row[remark]" rows="3" placeholder="请输入任务说明"></textarea>
        </div>
    </div>
    <div class="form-group layer-footer">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8">
            <button type="submit" class="btn btn-success btn-embossed disabled">{:__('OK')}</button>
            <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
        </div>
    </div>
</form>
